﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ThuongMaiDienTu
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {           
            loadData();
        }

        public void loadData()
        {
            var lst_pro = (from c in Db.data.Tb_SanPhams
                       select new { c });
            dtlst_product.DataSource = lst_pro.ToList();
            dtlst_product.DataBind();
        }

        protected void dtlst_product_ItemDataBound(object sender, DataListItemEventArgs e)
        {

        }
        protected void CommandBtn_Click(object sender, CommandEventArgs e)
        {
            int id = (int)e.CommandArgument;
        }

        protected void dtlst_product_ItemCommand(object source, DataListCommandEventArgs e)
        {

        }


    }
}